package com.wn.demo01;

/**
 * @author yellow Docter
 * @date 2024-07-24
 * @desc 蜗牛创想：www.woniuxy.com
 */
public class MyThread  extends Thread{

    @Override
    public void run() {
        while (true){
            try {
                //javaapi 会调用 操作系统 让休息一下
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println("MyThread.run hello");
        }
    }

}
